<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Step 4: Registering a Dataset">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002199956457.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002199956329">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Step 4: Registering a Dataset</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002199956329"></a><a name="EN-US_TOPIC_0000002199956329"></a>

<h1 class="topictitle1">Step 4: Registering a Dataset</h1>
<div><p>A dataset is a collection of resources with specified labels in a Kubernetes namespace. You can register a dataset to protect data of resources added with the same labels.</p>
<div class="section"><h4 class="sectiontitle">Precautions</h4><p>When registering a dataset, ensure that the entered labels contain all information about the application. Specifically, you need to add labels related to all resources (such as Services and workloads) in the <strong>Include Selectors</strong> area on the dataset registration page. Otherwise, restoration may fail.</p>
</div>
<div class="section"><h4 class="sectiontitle">Procedure</h4><ol><li><span>Choose <span class="uicontrol" id="EN-US_TOPIC_0000002199956329__en-us_topic_0000002164749702_en-us_topic_0000002199964685_uicontrol846217343614"><b><span id="EN-US_TOPIC_0000002199956329__en-us_topic_0000002164749702_en-us_topic_0000002199964685_text1046212303610"><strong>Protection</strong></span> &gt; Containers &gt; <span id="EN-US_TOPIC_0000002199956329__en-us_topic_0000002164749702_en-us_topic_0000002199964685_text149606591485"><strong>Kubernetes CSI</strong></span></b></span>.</span></li><li><span>Click the <span class="uicontrol"><b>Dataset</b></span> tab and click <span class="uicontrol"><b><span><strong>Register</strong></span></b></span> to register the Kubernetes CSI dataset information.</span><p><p><a href="#EN-US_TOPIC_0000002199956329__table13765154215210">Table 1</a> describes the Kubernetes CSI dataset registration information.</p>

<div class="tablenoborder"><a name="EN-US_TOPIC_0000002199956329__table13765154215210"></a><a name="table13765154215210"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002199956329__table13765154215210" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Dataset registration information</caption><colgroup><col style="width:25.89%"><col style="width:74.11%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25.89%" id="mcps1.3.3.2.2.2.2.2.3.1.1"><p>Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="74.11%" id="mcps1.3.3.2.2.2.2.2.3.1.2"><p>Description</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="25.89%" headers="mcps1.3.3.2.2.2.2.2.3.1.1 "><p><strong>Name</strong></p>
</td>
<td class="cellrowborder" valign="top" width="74.11%" headers="mcps1.3.3.2.2.2.2.2.3.1.2 "><p>Customize the dataset name.</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="25.89%" headers="mcps1.3.3.2.2.2.2.2.3.1.1 "><p><strong>Namespace</strong></p>
</td>
<td class="cellrowborder" valign="top" width="74.11%" headers="mcps1.3.3.2.2.2.2.2.3.1.2 "><p>Name of the namespace where the dataset to be registered is located.</p>
<div class="note"><span class="notetitle"> NOTE: </span><div class="notebody"><p>Before a namespace is selected, ensure that the namespace already exists in the cluster registered with the <span>OceanProtect</span>.</p>
</div></div>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="25.89%" headers="mcps1.3.3.2.2.2.2.2.3.1.1 "><p><span><strong>Include Selectors</strong></span></p>
</td>
<td class="cellrowborder" valign="top" width="74.11%" headers="mcps1.3.3.2.2.2.2.2.3.1.2 "><p>You can add multiple labels to specify resources that contain the labels in the namespace. You can query resource labels on the Kubernetes management platform. Ensure that all resources in the dataset to be registered contain the added labels.</p>
<div class="note"><span class="notetitle"> NOTE: </span><div class="notebody"><p>Workloads depend on the resources to which labels are added. Such resources include the Service, Secret, DaemonSet, Deployment, StatefulSet, ReplicaSet, and more.</p>
</div></div>
<p>The following is an input example of the <strong>Key</strong> and <strong>Value</strong> of a label:</p>
<pre class="screen" id="EN-US_TOPIC_0000002199956329__screen22201536347">Label:<em id="EN-US_TOPIC_0000002199956329__i2382632193619">app.kubernetes.io/name=mysql</em>
Key:<em id="EN-US_TOPIC_0000002199956329__i159413615368">app.kubernetes.io/name</em>
Value:<em id="EN-US_TOPIC_0000002199956329__i596523913363">mysql</em></pre>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="25.89%" headers="mcps1.3.3.2.2.2.2.2.3.1.1 "><p><span><strong>Exclude Selectors</strong></span></p>
</td>
<td class="cellrowborder" valign="top" width="74.11%" headers="mcps1.3.3.2.2.2.2.2.3.1.2 "><p>You can add multiple labels to exclude resources that contain the labels in the namespace. You can query resource labels on the Kubernetes management platform. Ensure that no resource in the dataset to be registered contains the added labels.</p>
<p>The following is an input example of the <strong>Key</strong> and <strong>Value</strong> of a label:</p>
<pre class="screen">Label:<em id="EN-US_TOPIC_0000002199956329__en-us_topic_0000002199956329_i2382632193619">app.kubernetes.io/name=mysql</em>
Key:<em id="EN-US_TOPIC_0000002199956329__en-us_topic_0000002199956329_i159413615368">app.kubernetes.io/name</em>
Value:<em id="EN-US_TOPIC_0000002199956329__en-us_topic_0000002199956329_i596523913363">mysql</em></pre>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p>A maximum of 16 datasets can be created in a namespace.</p>
</div></div>
</p></li><li><span>Click <span class="uicontrol"><b><span><strong>OK</strong></span></b></span>.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002199956457.html">Backing Up Namespaces or Datasets</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>